package com.dang.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.dang.entity.User;
import com.dang.service.UserService;

/**
 * 用户 控制层 Action  继承BaseAction
 * @author 但劲松
 *
 */
@Controller
public class UserAction extends BaseAction{
 
	/**
	 * 统一采用 1L序列化
	 */
	private static final long serialVersionUID = 1L;
	
	@Autowired
	private UserService userService;				//注入用户事务
	
	private User user;
	
	//——————————————————————————————业务方法区域——————————————————————————————————————//
	/**
	 * 用户登录方法
	 * @return
	 */
	public String login(){
		try{
			
			
		}catch(Exception e){
			//异常处理
			e.printStackTrace();
		}
		return SUCCESS;
	}
	
	//——————————————————————————get set 方法区域—————————————————————————————————————//
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}
